<?php

/*
 * TAG标签数据库操作类
 */

/**
 * Description of TAG_model
 *
 * @author Administrator
 */
class TAG_model extends CI_Model {
   
    //获取标签信息
    function get_TAG($str=FALSE) {
        if ($str === FALSE) {
            $query = $this->db->get('tag');
            return $query->result_array();
        }
        $query = $this->db->get_where('relationview', array('C_Id'=>$str));
        return $query->result_array();
    }
}

?>
